import 'package:gameplay_flutter/generated/json/base/json_convert_content.dart';
import 'package:gameplay_flutter/lib_basemodel/discover/moment_entity.dart';
import 'package:gameplay_flutter/lib_basemodel/discover/file_info_entity.dart';


MomentEntity $MomentEntityFromJson(Map<String, dynamic> json) {
  final MomentEntity momentEntity = MomentEntity();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    momentEntity.id = id;
  }
  final dynamic roomNo = json['roomNo'];
  if (roomNo != null) {
    momentEntity.roomNo = roomNo;
  }
  final dynamic roomName = json['roomName'];
  if (roomName != null) {
    momentEntity.roomName = roomName;
  }
  final dynamic roomCategoryId = json['roomCategoryId'];
  if (roomCategoryId != null) {
    momentEntity.roomCategoryId = roomCategoryId;
  }
  final dynamic flowType = json['flowType'];
  if (flowType != null) {
    momentEntity.flowType = flowType;
  }
  final dynamic city = json['city'];
  if (city != null) {
    momentEntity.city = city;
  }
  final String? nickName = jsonConvert.convert<String>(json['nickName']);
  if (nickName != null) {
    momentEntity.nickName = nickName;
  }
  final dynamic headUrl = json['headUrl'];
  if (headUrl != null) {
    momentEntity.headUrl = headUrl;
  }
  final dynamic micFrameUrl = json['micFrameUrl'];
  if (micFrameUrl != null) {
    momentEntity.micFrameUrl = micFrameUrl;
  }
  final dynamic nicknamePendantUrl = json['nicknamePendantUrl'];
  if (nicknamePendantUrl != null) {
    momentEntity.nicknamePendantUrl = nicknamePendantUrl;
  }
  final dynamic nicknamePendantH5Url = json['nicknamePendantH5Url'];
  if (nicknamePendantH5Url != null) {
    momentEntity.nicknamePendantH5Url = nicknamePendantH5Url;
  }
  final dynamic nicknamePendantAdUrl = json['nicknamePendantAdUrl'];
  if (nicknamePendantAdUrl != null) {
    momentEntity.nicknamePendantAdUrl = nicknamePendantAdUrl;
  }
  final dynamic nicknamePendantIosUrl = json['nicknamePendantIosUrl'];
  if (nicknamePendantIosUrl != null) {
    momentEntity.nicknamePendantIosUrl = nicknamePendantIosUrl;
  }
  final dynamic gender = json['gender'];
  if (gender != null) {
    momentEntity.gender = gender;
  }
  final dynamic file = json['file'];
  if (file != null) {
    momentEntity.file = file;
  }
  final dynamic tag = json['tag'];
  if (tag != null) {
    momentEntity.tag = tag;
  }
  final dynamic productId = json['productId'];
  if (productId != null) {
    momentEntity.productId = productId;
  }
  final String? title = jsonConvert.convert<String>(json['title']);
  if (title != null) {
    momentEntity.title = title;
  }
  final String? content = jsonConvert.convert<String>(json['content']);
  if (content != null) {
    momentEntity.content = content;
  }
  final dynamic platformAuthUrl = json['platformAuthUrl'];
  if (platformAuthUrl != null) {
    momentEntity.platformAuthUrl = platformAuthUrl;
  }
  final bool? isLike = jsonConvert.convert<bool>(json['isLike']);
  if (isLike != null) {
    momentEntity.isLike = isLike;
  }
  final int? isLikes = jsonConvert.convert<int>(json['isLikes']);
  if (isLikes != null) {
    momentEntity.isLikes = isLikes;
  }
  final int? likes = jsonConvert.convert<int>(json['likes']);
  if (likes != null) {
    momentEntity.likes = likes;
  }
  final dynamic router = json['router'];
  if (router != null) {
    momentEntity.router = router;
  }
  final dynamic techVoiceUrl = json['techVoiceUrl'];
  if (techVoiceUrl != null) {
    momentEntity.techVoiceUrl = techVoiceUrl;
  }
  final dynamic techVoiceDuration = json['techVoiceDuration'];
  if (techVoiceDuration != null) {
    momentEntity.techVoiceDuration = techVoiceDuration;
  }
  final dynamic techDescription = json['techDescription'];
  if (techDescription != null) {
    momentEntity.techDescription = techDescription;
  }
  final dynamic certUrl = json['certUrl'];
  if (certUrl != null) {
    momentEntity.certUrl = certUrl;
  }
  final dynamic danName = json['danName'];
  if (danName != null) {
    momentEntity.danName = danName;
  }
  final dynamic categoryHomeIcon = json['categoryHomeIcon'];
  if (categoryHomeIcon != null) {
    momentEntity.categoryHomeIcon = categoryHomeIcon;
  }
  final dynamic categoryHomeBackgroudIcon = json['categoryHomeBackgroudIcon'];
  if (categoryHomeBackgroudIcon != null) {
    momentEntity.categoryHomeBackgroudIcon = categoryHomeBackgroudIcon;
  }
  final dynamic micHeadPortraitsUrlList = json['micHeadPortraitsUrlList'];
  if (micHeadPortraitsUrlList != null) {
    momentEntity.micHeadPortraitsUrlList = micHeadPortraitsUrlList;
  }
  final dynamic roomCategoryName = json['roomCategoryName'];
  if (roomCategoryName != null) {
    momentEntity.roomCategoryName = roomCategoryName;
  }
  final dynamic roomCategoryUrl = json['roomCategoryUrl'];
  if (roomCategoryUrl != null) {
    momentEntity.roomCategoryUrl = roomCategoryUrl;
  }
  final dynamic roomCategoryNameV1 = json['roomCategoryNameV1'];
  if (roomCategoryNameV1 != null) {
    momentEntity.roomCategoryNameV1 = roomCategoryNameV1;
  }
  final dynamic roomCategoryUrlV1 = json['roomCategoryUrlV1'];
  if (roomCategoryUrlV1 != null) {
    momentEntity.roomCategoryUrlV1 = roomCategoryUrlV1;
  }
  final dynamic categoryId = json['categoryId'];
  if (categoryId != null) {
    momentEntity.categoryId = categoryId;
  }
  final dynamic categoryName = json['categoryName'];
  if (categoryName != null) {
    momentEntity.categoryName = categoryName;
  }
  final dynamic identityType = json['identityType'];
  if (identityType != null) {
    momentEntity.identityType = identityType;
  }
  final int? userId = jsonConvert.convert<int>(json['userId']);
  if (userId != null) {
    momentEntity.userId = userId;
  }
  final String? userHeadUrl = jsonConvert.convert<String>(json['userHeadUrl']);
  if (userHeadUrl != null) {
    momentEntity.userHeadUrl = userHeadUrl;
  }
  final dynamic userHeadFrameUrl = json['userHeadFrameUrl'];
  if (userHeadFrameUrl != null) {
    momentEntity.userHeadFrameUrl = userHeadFrameUrl;
  }
  final dynamic userPlatformAuthType = json['userPlatformAuthType'];
  if (userPlatformAuthType != null) {
    momentEntity.userPlatformAuthType = userPlatformAuthType;
  }
  final dynamic userPlatformAuthName = json['userPlatformAuthName'];
  if (userPlatformAuthName != null) {
    momentEntity.userPlatformAuthName = userPlatformAuthName;
  }
  final dynamic userPlatformAuthDesc = json['userPlatformAuthDesc'];
  if (userPlatformAuthDesc != null) {
    momentEntity.userPlatformAuthDesc = userPlatformAuthDesc;
  }
  final dynamic userPlatformAuthUrl = json['userPlatformAuthUrl'];
  if (userPlatformAuthUrl != null) {
    momentEntity.userPlatformAuthUrl = userPlatformAuthUrl;
  }
  final bool? online = jsonConvert.convert<bool>(json['online']);
  if (online != null) {
    momentEntity.online = online;
  }
  final dynamic imId = json['imId'];
  if (imId != null) {
    momentEntity.imId = imId;
  }
  final String? userNickname = jsonConvert.convert<String>(json['userNickname']);
  if (userNickname != null) {
    momentEntity.userNickname = userNickname;
  }
  final dynamic userRemark = json['userRemark'];
  if (userRemark != null) {
    momentEntity.userRemark = userRemark;
  }
  final int? userGender = jsonConvert.convert<int>(json['userGender']);
  if (userGender != null) {
    momentEntity.userGender = userGender;
  }
  final dynamic userAge = json['userAge'];
  if (userAge != null) {
    momentEntity.userAge = userAge;
  }
  final int? type = jsonConvert.convert<int>(json['type']);
  if (type != null) {
    momentEntity.type = type;
  }
  final dynamic productName = json['productName'];
  if (productName != null) {
    momentEntity.productName = productName;
  }
  final dynamic productPrice = json['productPrice'];
  if (productPrice != null) {
    momentEntity.productPrice = productPrice;
  }
  final dynamic productMaxPrice = json['productMaxPrice'];
  if (productMaxPrice != null) {
    momentEntity.productMaxPrice = productMaxPrice;
  }
  final dynamic productUnit = json['productUnit'];
  if (productUnit != null) {
    momentEntity.productUnit = productUnit;
  }
  final String? cityName = jsonConvert.convert<String>(json['cityName']);
  if (cityName != null) {
    momentEntity.cityName = cityName;
  }
  final int? rewards = jsonConvert.convert<int>(json['rewards']);
  if (rewards != null) {
    momentEntity.rewards = rewards;
  }
  final int? comments = jsonConvert.convert<int>(json['comments']);
  if (comments != null) {
    momentEntity.comments = comments;
  }
  final dynamic clicks = json['clicks'];
  if (clicks != null) {
    momentEntity.clicks = clicks;
  }
  final bool? isRecommend = jsonConvert.convert<bool>(json['isRecommend']);
  if (isRecommend != null) {
    momentEntity.isRecommend = isRecommend;
  }
  final dynamic recommendTime = json['recommendTime'];
  if (recommendTime != null) {
    momentEntity.recommendTime = recommendTime;
  }
  final String? createTime = jsonConvert.convert<String>(json['createTime']);
  if (createTime != null) {
    momentEntity.createTime = createTime;
  }
  final dynamic status = json['status'];
  if (status != null) {
    momentEntity.status = status;
  }
  final List<FileInfoEntity>? files = (json['files'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<FileInfoEntity>(e) as FileInfoEntity).toList();
  if (files != null) {
    momentEntity.files = files;
  }
  final dynamic likeUserIds = json['likeUserIds'];
  if (likeUserIds != null) {
    momentEntity.likeUserIds = likeUserIds;
  }
  final int? isAttention = jsonConvert.convert<int>(json['isAttention']);
  if (isAttention != null) {
    momentEntity.isAttention = isAttention;
  }
  final int? memberLevel = jsonConvert.convert<int>(json['memberLevel']);
  if (memberLevel != null) {
    momentEntity.memberLevel = memberLevel;
  }
  final dynamic memberEmblem = json['memberEmblem'];
  if (memberEmblem != null) {
    momentEntity.memberEmblem = memberEmblem;
  }
  final dynamic memberExp = json['memberExp'];
  if (memberExp != null) {
    momentEntity.memberExp = memberExp;
  }
  final dynamic categoryIcon = json['categoryIcon'];
  if (categoryIcon != null) {
    momentEntity.categoryIcon = categoryIcon;
  }
  final dynamic techTags = json['techTags'];
  if (techTags != null) {
    momentEntity.techTags = techTags;
  }
  final dynamic dan = json['dan'];
  if (dan != null) {
    momentEntity.dan = dan;
  }
  final dynamic productVOList = json['productVOList'];
  if (productVOList != null) {
    momentEntity.productVOList = productVOList;
  }
  final dynamic dynamicCommentVOS = json['dynamicCommentVOS'];
  if (dynamicCommentVOS != null) {
    momentEntity.dynamicCommentVOS = dynamicCommentVOS;
  }
  final dynamic nobleExp = json['nobleExp'];
  if (nobleExp != null) {
    momentEntity.nobleExp = nobleExp;
  }
  final dynamic nobleRankCode = json['nobleRankCode'];
  if (nobleRankCode != null) {
    momentEntity.nobleRankCode = nobleRankCode;
  }
  final dynamic nobleName = json['nobleName'];
  if (nobleName != null) {
    momentEntity.nobleName = nobleName;
  }
  final dynamic emblemSimpleUrl = json['emblemSimpleUrl'];
  if (emblemSimpleUrl != null) {
    momentEntity.emblemSimpleUrl = emblemSimpleUrl;
  }
  final dynamic emblemUrl = json['emblemUrl'];
  if (emblemUrl != null) {
    momentEntity.emblemUrl = emblemUrl;
  }
  final dynamic nobleBackgroundUrl = json['nobleBackgroundUrl'];
  if (nobleBackgroundUrl != null) {
    momentEntity.nobleBackgroundUrl = nobleBackgroundUrl;
  }
  final dynamic popularityInfo = json['popularityInfo'];
  if (popularityInfo != null) {
    momentEntity.popularityInfo = popularityInfo;
  }
  final dynamic richerInfo = json['richerInfo'];
  if (richerInfo != null) {
    momentEntity.richerInfo = richerInfo;
  }
  final String? timeStr = jsonConvert.convert<String>(json['timeStr']);
  if (timeStr != null) {
    momentEntity.timeStr = timeStr;
  }
  final String? countryName = jsonConvert.convert<String>(json['countryName']);
  if (countryName != null) {
    momentEntity.countryName = countryName;
  }
  final bool? toBlack = jsonConvert.convert<bool>(json['toBlack']);
  if (toBlack != null) {
    momentEntity.toBlack = toBlack;
  }
  final bool? fromBlack = jsonConvert.convert<bool>(json['fromBlack']);
  if (fromBlack != null) {
    momentEntity.fromBlack = fromBlack;
  }
  final dynamic toastMsg = json['toastMsg'];
  if (toastMsg != null) {
    momentEntity.toastMsg = toastMsg;
  }
  final int? visible = jsonConvert.convert<int>(json['visible']);
  if (visible != null) {
    momentEntity.visible = visible;
  }
  final int? auditStatus = jsonConvert.convert<int>(json['auditStatus']);
  if (auditStatus != null) {
    momentEntity.auditStatus = auditStatus;
  }
  final dynamic shareMsg = json['shareMsg'];
  if (shareMsg != null) {
    momentEntity.shareMsg = shareMsg;
  }
  final dynamic rewardUserHeadUrlList = json['rewardUserHeadUrlList'];
  if (rewardUserHeadUrlList != null) {
    momentEntity.rewardUserHeadUrlList = rewardUserHeadUrlList;
  }
  final dynamic topicId = json['topicId'];
  if (topicId != null) {
    momentEntity.topicId = topicId;
  }
  final String? topicName = jsonConvert.convert<String>(json['topicName']);
  if (topicName != null) {
    momentEntity.topicName = topicName;
  }
  final dynamic weightScore = json['weightScore'];
  if (weightScore != null) {
    momentEntity.weightScore = weightScore;
  }
  final String? audioSharePic = jsonConvert.convert<String>(json['audioSharePic']);
  if (audioSharePic != null) {
    momentEntity.audioSharePic = audioSharePic;
  }
  final int? officialAccount = jsonConvert.convert<int>(json['officialAccount']);
  if (officialAccount != null) {
    momentEntity.officialAccount = officialAccount;
  }
  final int? dispatcherType = jsonConvert.convert<int>(json['dispatcherType']);
  if (dispatcherType != null) {
    momentEntity.dispatcherType = dispatcherType;
  }
  final dynamic friendInfo = json['friendInfo'];
  if (friendInfo != null) {
    momentEntity.friendInfo = friendInfo;
  }
  final dynamic moodLabelId = json['moodLabelId'];
  if (moodLabelId != null) {
    momentEntity.moodLabelId = moodLabelId;
  }
  final int? moodNum1 = jsonConvert.convert<int>(json['moodNum1']);
  if (moodNum1 != null) {
    momentEntity.moodNum1 = moodNum1;
  }
  final int? moodNum2 = jsonConvert.convert<int>(json['moodNum2']);
  if (moodNum2 != null) {
    momentEntity.moodNum2 = moodNum2;
  }
  final int? moodNum3 = jsonConvert.convert<int>(json['moodNum3']);
  if (moodNum3 != null) {
    momentEntity.moodNum3 = moodNum3;
  }
  final int? moodNum4 = jsonConvert.convert<int>(json['moodNum4']);
  if (moodNum4 != null) {
    momentEntity.moodNum4 = moodNum4;
  }
  final int? moodNum5 = jsonConvert.convert<int>(json['moodNum5']);
  if (moodNum5 != null) {
    momentEntity.moodNum5 = moodNum5;
  }
  final int? moodNum6 = jsonConvert.convert<int>(json['moodNum6']);
  if (moodNum6 != null) {
    momentEntity.moodNum6 = moodNum6;
  }
  final dynamic userMoodInfo = json['userMoodInfo'];
  if (userMoodInfo != null) {
    momentEntity.userMoodInfo = userMoodInfo;
  }
  final int? dynamicType = jsonConvert.convert<int>(json['dynamicType']);
  if (dynamicType != null) {
    momentEntity.dynamicType = dynamicType;
  }
  final bool? top = jsonConvert.convert<bool>(json['top']);
  if (top != null) {
    momentEntity.top = top;
  }
  final List<MomentContentInfoList>? contentInfoList = (json['contentInfoList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<MomentContentInfoList>(e) as MomentContentInfoList).toList();
  if (contentInfoList != null) {
    momentEntity.contentInfoList = contentInfoList;
  }
  final String? interests = jsonConvert.convert<String>(json['interests']);
  if (interests != null) {
    momentEntity.interests = interests;
  }
  final List<String>? aboutList = (json['aboutList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (aboutList != null) {
    momentEntity.aboutList = aboutList;
  }
  return momentEntity;
}

Map<String, dynamic> $MomentEntityToJson(MomentEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['roomNo'] = entity.roomNo;
  data['roomName'] = entity.roomName;
  data['roomCategoryId'] = entity.roomCategoryId;
  data['flowType'] = entity.flowType;
  data['city'] = entity.city;
  data['nickName'] = entity.nickName;
  data['headUrl'] = entity.headUrl;
  data['micFrameUrl'] = entity.micFrameUrl;
  data['nicknamePendantUrl'] = entity.nicknamePendantUrl;
  data['nicknamePendantH5Url'] = entity.nicknamePendantH5Url;
  data['nicknamePendantAdUrl'] = entity.nicknamePendantAdUrl;
  data['nicknamePendantIosUrl'] = entity.nicknamePendantIosUrl;
  data['gender'] = entity.gender;
  data['file'] = entity.file;
  data['tag'] = entity.tag;
  data['productId'] = entity.productId;
  data['title'] = entity.title;
  data['content'] = entity.content;
  data['platformAuthUrl'] = entity.platformAuthUrl;
  data['isLike'] = entity.isLike;
  data['isLikes'] = entity.isLikes;
  data['likes'] = entity.likes;
  data['router'] = entity.router;
  data['techVoiceUrl'] = entity.techVoiceUrl;
  data['techVoiceDuration'] = entity.techVoiceDuration;
  data['techDescription'] = entity.techDescription;
  data['certUrl'] = entity.certUrl;
  data['danName'] = entity.danName;
  data['categoryHomeIcon'] = entity.categoryHomeIcon;
  data['categoryHomeBackgroudIcon'] = entity.categoryHomeBackgroudIcon;
  data['micHeadPortraitsUrlList'] = entity.micHeadPortraitsUrlList;
  data['roomCategoryName'] = entity.roomCategoryName;
  data['roomCategoryUrl'] = entity.roomCategoryUrl;
  data['roomCategoryNameV1'] = entity.roomCategoryNameV1;
  data['roomCategoryUrlV1'] = entity.roomCategoryUrlV1;
  data['categoryId'] = entity.categoryId;
  data['categoryName'] = entity.categoryName;
  data['identityType'] = entity.identityType;
  data['userId'] = entity.userId;
  data['userHeadUrl'] = entity.userHeadUrl;
  data['userHeadFrameUrl'] = entity.userHeadFrameUrl;
  data['userPlatformAuthType'] = entity.userPlatformAuthType;
  data['userPlatformAuthName'] = entity.userPlatformAuthName;
  data['userPlatformAuthDesc'] = entity.userPlatformAuthDesc;
  data['userPlatformAuthUrl'] = entity.userPlatformAuthUrl;
  data['online'] = entity.online;
  data['imId'] = entity.imId;
  data['userNickname'] = entity.userNickname;
  data['userRemark'] = entity.userRemark;
  data['userGender'] = entity.userGender;
  data['userAge'] = entity.userAge;
  data['type'] = entity.type;
  data['productName'] = entity.productName;
  data['productPrice'] = entity.productPrice;
  data['productMaxPrice'] = entity.productMaxPrice;
  data['productUnit'] = entity.productUnit;
  data['cityName'] = entity.cityName;
  data['rewards'] = entity.rewards;
  data['comments'] = entity.comments;
  data['clicks'] = entity.clicks;
  data['isRecommend'] = entity.isRecommend;
  data['recommendTime'] = entity.recommendTime;
  data['createTime'] = entity.createTime;
  data['status'] = entity.status;
  data['files'] = entity.files.map((v) => v.toJson()).toList();
  data['likeUserIds'] = entity.likeUserIds;
  data['isAttention'] = entity.isAttention;
  data['memberLevel'] = entity.memberLevel;
  data['memberEmblem'] = entity.memberEmblem;
  data['memberExp'] = entity.memberExp;
  data['categoryIcon'] = entity.categoryIcon;
  data['techTags'] = entity.techTags;
  data['dan'] = entity.dan;
  data['productVOList'] = entity.productVOList;
  data['dynamicCommentVOS'] = entity.dynamicCommentVOS;
  data['nobleExp'] = entity.nobleExp;
  data['nobleRankCode'] = entity.nobleRankCode;
  data['nobleName'] = entity.nobleName;
  data['emblemSimpleUrl'] = entity.emblemSimpleUrl;
  data['emblemUrl'] = entity.emblemUrl;
  data['nobleBackgroundUrl'] = entity.nobleBackgroundUrl;
  data['popularityInfo'] = entity.popularityInfo;
  data['richerInfo'] = entity.richerInfo;
  data['timeStr'] = entity.timeStr;
  data['countryName'] = entity.countryName;
  data['toBlack'] = entity.toBlack;
  data['fromBlack'] = entity.fromBlack;
  data['toastMsg'] = entity.toastMsg;
  data['visible'] = entity.visible;
  data['auditStatus'] = entity.auditStatus;
  data['shareMsg'] = entity.shareMsg;
  data['rewardUserHeadUrlList'] = entity.rewardUserHeadUrlList;
  data['topicId'] = entity.topicId;
  data['topicName'] = entity.topicName;
  data['weightScore'] = entity.weightScore;
  data['audioSharePic'] = entity.audioSharePic;
  data['officialAccount'] = entity.officialAccount;
  data['dispatcherType'] = entity.dispatcherType;
  data['friendInfo'] = entity.friendInfo;
  data['moodLabelId'] = entity.moodLabelId;
  data['moodNum1'] = entity.moodNum1;
  data['moodNum2'] = entity.moodNum2;
  data['moodNum3'] = entity.moodNum3;
  data['moodNum4'] = entity.moodNum4;
  data['moodNum5'] = entity.moodNum5;
  data['moodNum6'] = entity.moodNum6;
  data['userMoodInfo'] = entity.userMoodInfo;
  data['dynamicType'] = entity.dynamicType;
  data['top'] = entity.top;
  data['contentInfoList'] = entity.contentInfoList.map((v) => v.toJson()).toList();
  data['interests'] = entity.interests;
  data['aboutList'] = entity.aboutList;
  return data;
}

extension MomentEntityExtension on MomentEntity {
  MomentEntity copyWith({
    int? id,
    dynamic roomNo,
    dynamic roomName,
    dynamic roomCategoryId,
    dynamic flowType,
    dynamic city,
    String? nickName,
    dynamic headUrl,
    dynamic micFrameUrl,
    dynamic nicknamePendantUrl,
    dynamic nicknamePendantH5Url,
    dynamic nicknamePendantAdUrl,
    dynamic nicknamePendantIosUrl,
    dynamic gender,
    dynamic file,
    dynamic tag,
    dynamic productId,
    String? title,
    String? content,
    dynamic platformAuthUrl,
    bool? isLike,
    int? isLikes,
    int? likes,
    dynamic router,
    dynamic techVoiceUrl,
    dynamic techVoiceDuration,
    dynamic techDescription,
    dynamic certUrl,
    dynamic danName,
    dynamic categoryHomeIcon,
    dynamic categoryHomeBackgroudIcon,
    dynamic micHeadPortraitsUrlList,
    dynamic roomCategoryName,
    dynamic roomCategoryUrl,
    dynamic roomCategoryNameV1,
    dynamic roomCategoryUrlV1,
    dynamic categoryId,
    dynamic categoryName,
    dynamic identityType,
    int? userId,
    String? userHeadUrl,
    dynamic userHeadFrameUrl,
    dynamic userPlatformAuthType,
    dynamic userPlatformAuthName,
    dynamic userPlatformAuthDesc,
    dynamic userPlatformAuthUrl,
    bool? online,
    dynamic imId,
    String? userNickname,
    dynamic userRemark,
    int? userGender,
    dynamic userAge,
    int? type,
    dynamic productName,
    dynamic productPrice,
    dynamic productMaxPrice,
    dynamic productUnit,
    String? cityName,
    int? rewards,
    int? comments,
    dynamic clicks,
    bool? isRecommend,
    dynamic recommendTime,
    String? createTime,
    dynamic status,
    List<FileInfoEntity>? files,
    dynamic likeUserIds,
    int? isAttention,
    int? memberLevel,
    dynamic memberEmblem,
    dynamic memberExp,
    dynamic categoryIcon,
    dynamic techTags,
    dynamic dan,
    dynamic productVOList,
    dynamic dynamicCommentVOS,
    dynamic nobleExp,
    dynamic nobleRankCode,
    dynamic nobleName,
    dynamic emblemSimpleUrl,
    dynamic emblemUrl,
    dynamic nobleBackgroundUrl,
    dynamic popularityInfo,
    dynamic richerInfo,
    String? timeStr,
    String? countryName,
    bool? toBlack,
    bool? fromBlack,
    dynamic toastMsg,
    int? visible,
    int? auditStatus,
    dynamic shareMsg,
    dynamic rewardUserHeadUrlList,
    dynamic topicId,
    String? topicName,
    dynamic weightScore,
    String? audioSharePic,
    int? officialAccount,
    int? dispatcherType,
    dynamic friendInfo,
    dynamic moodLabelId,
    int? moodNum1,
    int? moodNum2,
    int? moodNum3,
    int? moodNum4,
    int? moodNum5,
    int? moodNum6,
    dynamic userMoodInfo,
    int? dynamicType,
    bool? top,
    List<MomentContentInfoList>? contentInfoList,
    String? interests,
    List<String>? aboutList,
  }) {
    return MomentEntity()
      ..id = id ?? this.id
      ..roomNo = roomNo ?? this.roomNo
      ..roomName = roomName ?? this.roomName
      ..roomCategoryId = roomCategoryId ?? this.roomCategoryId
      ..flowType = flowType ?? this.flowType
      ..city = city ?? this.city
      ..nickName = nickName ?? this.nickName
      ..headUrl = headUrl ?? this.headUrl
      ..micFrameUrl = micFrameUrl ?? this.micFrameUrl
      ..nicknamePendantUrl = nicknamePendantUrl ?? this.nicknamePendantUrl
      ..nicknamePendantH5Url = nicknamePendantH5Url ?? this.nicknamePendantH5Url
      ..nicknamePendantAdUrl = nicknamePendantAdUrl ?? this.nicknamePendantAdUrl
      ..nicknamePendantIosUrl = nicknamePendantIosUrl ?? this.nicknamePendantIosUrl
      ..gender = gender ?? this.gender
      ..file = file ?? this.file
      ..tag = tag ?? this.tag
      ..productId = productId ?? this.productId
      ..title = title ?? this.title
      ..content = content ?? this.content
      ..platformAuthUrl = platformAuthUrl ?? this.platformAuthUrl
      ..isLike = isLike ?? this.isLike
      ..isLikes = isLikes ?? this.isLikes
      ..likes = likes ?? this.likes
      ..router = router ?? this.router
      ..techVoiceUrl = techVoiceUrl ?? this.techVoiceUrl
      ..techVoiceDuration = techVoiceDuration ?? this.techVoiceDuration
      ..techDescription = techDescription ?? this.techDescription
      ..certUrl = certUrl ?? this.certUrl
      ..danName = danName ?? this.danName
      ..categoryHomeIcon = categoryHomeIcon ?? this.categoryHomeIcon
      ..categoryHomeBackgroudIcon = categoryHomeBackgroudIcon ?? this.categoryHomeBackgroudIcon
      ..micHeadPortraitsUrlList = micHeadPortraitsUrlList ?? this.micHeadPortraitsUrlList
      ..roomCategoryName = roomCategoryName ?? this.roomCategoryName
      ..roomCategoryUrl = roomCategoryUrl ?? this.roomCategoryUrl
      ..roomCategoryNameV1 = roomCategoryNameV1 ?? this.roomCategoryNameV1
      ..roomCategoryUrlV1 = roomCategoryUrlV1 ?? this.roomCategoryUrlV1
      ..categoryId = categoryId ?? this.categoryId
      ..categoryName = categoryName ?? this.categoryName
      ..identityType = identityType ?? this.identityType
      ..userId = userId ?? this.userId
      ..userHeadUrl = userHeadUrl ?? this.userHeadUrl
      ..userHeadFrameUrl = userHeadFrameUrl ?? this.userHeadFrameUrl
      ..userPlatformAuthType = userPlatformAuthType ?? this.userPlatformAuthType
      ..userPlatformAuthName = userPlatformAuthName ?? this.userPlatformAuthName
      ..userPlatformAuthDesc = userPlatformAuthDesc ?? this.userPlatformAuthDesc
      ..userPlatformAuthUrl = userPlatformAuthUrl ?? this.userPlatformAuthUrl
      ..online = online ?? this.online
      ..imId = imId ?? this.imId
      ..userNickname = userNickname ?? this.userNickname
      ..userRemark = userRemark ?? this.userRemark
      ..userGender = userGender ?? this.userGender
      ..userAge = userAge ?? this.userAge
      ..type = type ?? this.type
      ..productName = productName ?? this.productName
      ..productPrice = productPrice ?? this.productPrice
      ..productMaxPrice = productMaxPrice ?? this.productMaxPrice
      ..productUnit = productUnit ?? this.productUnit
      ..cityName = cityName ?? this.cityName
      ..rewards = rewards ?? this.rewards
      ..comments = comments ?? this.comments
      ..clicks = clicks ?? this.clicks
      ..isRecommend = isRecommend ?? this.isRecommend
      ..recommendTime = recommendTime ?? this.recommendTime
      ..createTime = createTime ?? this.createTime
      ..status = status ?? this.status
      ..files = files ?? this.files
      ..likeUserIds = likeUserIds ?? this.likeUserIds
      ..isAttention = isAttention ?? this.isAttention
      ..memberLevel = memberLevel ?? this.memberLevel
      ..memberEmblem = memberEmblem ?? this.memberEmblem
      ..memberExp = memberExp ?? this.memberExp
      ..categoryIcon = categoryIcon ?? this.categoryIcon
      ..techTags = techTags ?? this.techTags
      ..dan = dan ?? this.dan
      ..productVOList = productVOList ?? this.productVOList
      ..dynamicCommentVOS = dynamicCommentVOS ?? this.dynamicCommentVOS
      ..nobleExp = nobleExp ?? this.nobleExp
      ..nobleRankCode = nobleRankCode ?? this.nobleRankCode
      ..nobleName = nobleName ?? this.nobleName
      ..emblemSimpleUrl = emblemSimpleUrl ?? this.emblemSimpleUrl
      ..emblemUrl = emblemUrl ?? this.emblemUrl
      ..nobleBackgroundUrl = nobleBackgroundUrl ?? this.nobleBackgroundUrl
      ..popularityInfo = popularityInfo ?? this.popularityInfo
      ..richerInfo = richerInfo ?? this.richerInfo
      ..timeStr = timeStr ?? this.timeStr
      ..countryName = countryName ?? this.countryName
      ..toBlack = toBlack ?? this.toBlack
      ..fromBlack = fromBlack ?? this.fromBlack
      ..toastMsg = toastMsg ?? this.toastMsg
      ..visible = visible ?? this.visible
      ..auditStatus = auditStatus ?? this.auditStatus
      ..shareMsg = shareMsg ?? this.shareMsg
      ..rewardUserHeadUrlList = rewardUserHeadUrlList ?? this.rewardUserHeadUrlList
      ..topicId = topicId ?? this.topicId
      ..topicName = topicName ?? this.topicName
      ..weightScore = weightScore ?? this.weightScore
      ..audioSharePic = audioSharePic ?? this.audioSharePic
      ..officialAccount = officialAccount ?? this.officialAccount
      ..dispatcherType = dispatcherType ?? this.dispatcherType
      ..friendInfo = friendInfo ?? this.friendInfo
      ..moodLabelId = moodLabelId ?? this.moodLabelId
      ..moodNum1 = moodNum1 ?? this.moodNum1
      ..moodNum2 = moodNum2 ?? this.moodNum2
      ..moodNum3 = moodNum3 ?? this.moodNum3
      ..moodNum4 = moodNum4 ?? this.moodNum4
      ..moodNum5 = moodNum5 ?? this.moodNum5
      ..moodNum6 = moodNum6 ?? this.moodNum6
      ..userMoodInfo = userMoodInfo ?? this.userMoodInfo
      ..dynamicType = dynamicType ?? this.dynamicType
      ..top = top ?? this.top
      ..contentInfoList = contentInfoList ?? this.contentInfoList
      ..interests = interests ?? this.interests
      ..aboutList = aboutList ?? this.aboutList;
  }
}

MomentContentInfoList $MomentContentInfoListFromJson(Map<String, dynamic> json) {
  final MomentContentInfoList momentContentInfoList = MomentContentInfoList();
  final String? text = jsonConvert.convert<String>(json['text']);
  if (text != null) {
    momentContentInfoList.text = text;
  }
  final int? type = jsonConvert.convert<int>(json['type']);
  if (type != null) {
    momentContentInfoList.type = type;
  }
  final dynamic userId = json['userId'];
  if (userId != null) {
    momentContentInfoList.userId = userId;
  }
  final dynamic nickname = json['nickname'];
  if (nickname != null) {
    momentContentInfoList.nickname = nickname;
  }
  final dynamic imId = json['imId'];
  if (imId != null) {
    momentContentInfoList.imId = imId;
  }
  final dynamic userStatus = json['userStatus'];
  if (userStatus != null) {
    momentContentInfoList.userStatus = userStatus;
  }
  return momentContentInfoList;
}

Map<String, dynamic> $MomentContentInfoListToJson(MomentContentInfoList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['text'] = entity.text;
  data['type'] = entity.type;
  data['userId'] = entity.userId;
  data['nickname'] = entity.nickname;
  data['imId'] = entity.imId;
  data['userStatus'] = entity.userStatus;
  return data;
}

extension MomentContentInfoListExtension on MomentContentInfoList {
  MomentContentInfoList copyWith({
    String? text,
    int? type,
    dynamic userId,
    dynamic nickname,
    dynamic imId,
    dynamic userStatus,
  }) {
    return MomentContentInfoList()
      ..text = text ?? this.text
      ..type = type ?? this.type
      ..userId = userId ?? this.userId
      ..nickname = nickname ?? this.nickname
      ..imId = imId ?? this.imId
      ..userStatus = userStatus ?? this.userStatus;
  }
}